<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('form_cisrf'))
{
    function form_cisrf()
    {
        $CI =& get_instance();
        
        if ( ! function_exists('cisrf_create_token'))
        {    
            $CI->load->helper('cisrf');
        }
       
        // create the token 
        cisrf_create_token();

        // return the to-be-added form element
        return form_hidden(cisrf_token_name(), cisrf_token());
    }
}

/* End of file MY_form_helper.php */
/* Location: ./system/application/helpers/MY_form_helper.php */
